package cn.itcast.service.stat.impl;

import cn.itcast.dao.stat.StatDao;
import cn.itcast.service.stat.StatService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Service
public class StatServiceImpl implements StatService {

	@Autowired
	private StatDao statDao;

	//获取生产厂家的统计数据
	public List<Map> findFactoryData(String companyId) {
		return statDao.findFactoryData(companyId);
	}

	//获取产品销售排行榜的统计数据
	public List<Map> findSellData(String companyId) {
		return statDao.findSellData(companyId);
	}

	//获取系统访问压力图的统计数据
	public List<Map> findOnLineData(String companyId) {
		return statDao.findOnLineData(companyId);
	}
}
